import React, { Component } from "react";
import PostItem from "./PostItem.jsx";
class PostFeed extends Component {
  render() {
    const { posts } = this.props;
    return posts.map(post => <PostItem key={post._id} post={post}></PostItem>);

  }
}
export default PostFeed;
